﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Caching;

namespace EP.Caching.Providers {
	public class NoCacheProvider : ICacheProvider {
		#region ICacheProvider Members
		public TimeSpan? SlidingTimeout {
			get { return null; }
			set { }
		}

		public bool SupportsAbsoluteTimeout { get { return false; } }
		public DateTimeOffset? AbsoluteTimeout {
			get { return null; }
			set { }
		}

		public bool SupportsChangeMonitors { get { return false; } }
		public IList<ChangeMonitor> Monitors {
			get { return null; }
		}

		public void Add<T>(string key, T value) {
		}

		public bool Contains(string key) {
			return false;
		}

		public object Get(string key) {
			return null;
		}
		public T Get<T>(string key) where T : class, IConvertible {
			return null;
		}

		public void Remove(string key) {
		}
		#endregion
	}
}
